package java_zuoye_2;

import java.util.Random;
import java.util.Scanner;

public class homework_2 {
	public static void main(String[] arg) {
		Random r = new Random();
		Scanner sc = new Scanner(System.in);
		int rnum = r.nextInt(1,100);
		int num = 101;
		System.out.println("请猜");
		while(num != rnum) {
			num = sc.nextInt();
			if(rnum > num) {
				System.out.println("小了");
			}else if(num > rnum) {
				System.out.println("大了");
			}
		}
		System.out.println("正确");
	}
}
